package com.github.maojx0630.onebot.dto.send.msg;

import com.github.maojx0630.onebot.dto.send.Send;

public class SendJson implements Send {

  private final String json;

  private SendJson(String json) {
    this.json = json;
  }

  public static SendJson of(String json) {
    return new SendJson(json);
  }

  @Override
  public String getKey() {
    return "data";
  }

  @Override
  public String getType() {
    return "json";
  }

  @Override
  public String getValue() {
    return json;
  }
}
